<?php defined( '_JEXEC' ) or die( 'Restricted access' );

/**
 * @version $Id: default_comments.php,v 1.5 2009/06/04 20:44:26 dgravato Exp $
 * @package    sketchup
 * @subpackage 

 * @author     Chris Borkowski {@link http://www.guggenheim.org}
 * @author     Created on 21-May-2009
 */

$row_color= array('#d9d0a7', '#CCCCCC');
$color_index = 0;

?>


<h2>Comments:</h2>
		<?php if(count($this->comments)) : ?> 
  		<br />
  		
  		<?php foreach($this->comments as $comment): ?> 
  		<div style="background-color:<?php echo $row_color[$color_index]; ?>;">
  		<p><strong><?php echo $comment->full_name; ?></strong> on <em><?php echo $comment->comment_date; ?></em> Said:</p> 
 		<p> <?php echo $comment->comment_text; ?></p>
 		<?php $color_index =1 - $color_index; ?>
 		</div>
 		<?php endforeach; ?> 
		<?php endif; ?> 
		<br /> 